<?php

$doc = document::getInstance();

$doc->setTitle("Testpanel Dashboard");

$doc->addJQuery();
$doc->addCufon();

$doc->addJS("templates/page/js/general.js");

// menu css
$doc->addCSS("templates/page/css/usmenu.css");

?>

<div id="logo"><a href="/"><img src="/theme/vdjo_default/images/logo.png" width="283" height="97" alt="vdjo.com" /></a></div>
				
<div id="wrapper">
	<div id="wrapper-upper"></div>
	<div id="wrapper-center">
		<div id="contents">
			<div class="wide margin menu">
			<?php $req = new request(
				array("module" => "testpanel", "action" => "menu", "format" => "html"));
				module::load($req); ?>
			</div>	
			<div class="wide">
				<h2>Testpanel Dashboard</h2>
				
				<div class="signup right">
					<h3>Sign up now!</h3>
					<form action="/testpanel/signup" method="post">
						<label for="signup_email">E-mail address:</label>
						<input type="text" size="20" name="signup_email" id="signup_email"></input>
						<input type="submit" name="signup_submit" value="Take me aboard!"></input>
					</form>
				</div>
				<p>
					Members of our testpanel:<br/>
					<b>&bull; receive notifications about updates<br/>
					&bull; are invited to share their opinion about new features<br/>
					&bull; provide valuable feedback to the vdjo.com team</b><br/>
				</p>				
				
				<h3>Latest update</h3>
				<p>
					<span class="post">
						<?php
							$blog = new blogger();
							$postlist = $blog->getPostList("8424855641355285463");
							$latest = $postlist[0];							
							$title = (string) $latest->title; 
							$link = $latest->link[4]->attributes()->href; 
							$contents = (string) $latest->content;
							$contents = strip_tags($contents, "<br><img><a>");
							 
						?>
						<a class="blogtitle" href="<?php echo $link; ?>"><?php echo $title; ?></a>
						<span class="blogcontents">
							<?php echo $contents; ?><br/>
						</span>
					</span>
				</p>
				<div class="bullet red left"><a href="http://beta.vdjo.com/?test=latest">Test this update!</a></div>
				<div class="bullet red left"><a href="<?php echo $link; ?>">Give your opinion!</a></div>
				<div class="clear"></div>				
				
			</div>
			<div class="clear"></div>
			<?php $req = new request(
				array("module" => "sitemap", "action" => "show", "format" => "html"));
				module::load($req); ?>	
		</div>
	</div>
	<div id="wrapper-lower"></div>
</div>

<script type="text/javascript"> Cufon.now(); </script>